﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using System.Diagnostics;           // StackFrame for Logging

namespace csharpTest
{
    class Program
    {
        static void Main(string[] args)
        {
            ConsoleLog cl = new ConsoleLog();
            cl.Write(new StackFrame(true), "console logging test");

            FileLog fl = new FileLog();
            fl.Open("test.txt");
            fl.Write(new StackFrame(true), "file logging test1-1");
            fl.Write(new StackFrame(true), "file logging test1-2");
            fl.Write(new StackFrame(true), "file logging test1-3");
            fl.Write(new StackFrame(true), "file logging test1-4");
            fl.Write(new StackFrame(true), "file logging test1-5");
            fl.Close();

            fl.Open("test.txt");
            fl.Write(new StackFrame(true), "file logging test2-1");
            fl.Write(new StackFrame(true), "file logging test2-2");
            fl.Write(new StackFrame(true), "file logging test2-3");
            fl.Write(new StackFrame(true), "file logging test2-4");
            fl.Write(new StackFrame(true), "file logging test2-5");
            fl.Close();
        }
    }
}
